package com.eipc.model;

import java.util.ArrayList;

/**
 * 每日对阵中listview中数据的实体类
 * @author x_liaolijun
 *
 * 2010-9-24 上午10:46:29
 *  
 * TEverydayMatch
 *
 */
public class TEverydayAround {
	public String name;    //赛场名字
	public String beginTime; //开始时间
	public ArrayList<TEverydayMatch> matches; //此赛场的比赛
		
	public TEverydayAround(String name, String beginTime,
			ArrayList<TEverydayMatch> matches) {
		super();
		this.name = name;
		this.beginTime = beginTime;
		this.matches = matches;
	}
	
	public TEverydayAround(String name, String beginTime) {
		super();
		this.name = name;
		this.beginTime = beginTime;
	}

	public static class TEverydayMatch{
		public String matchTime;  //比赛时间
		public String isGroup;    //是否为双打
		public Player playerA;    //选手A
		public Player playerB;    //选手B
		public TEverydayGroup groupA; //双打选手A组
		public TEverydayGroup groupB; //双打选手B组
		public String statics;    //状态
		public String playerRetail; //单打伤退选手
		public String groupRetail;  //双打伤退选手
		public String winner;      //单打win选手
		public String groupWinner;  //双打win选手
		public String score;        //比分(包含了这场比较的所有分数)
		public TEverydayMatch(String matchTime, String isGroup, Player playerA,
				Player playerB, String statics, String playerRetail,
				String winner, String score) {
			this.matchTime = matchTime;
			this.isGroup = isGroup;
			this.playerA = playerA;
			this.playerB = playerB;
			this.statics = statics;
			this.playerRetail = playerRetail;
			this.winner = winner;
			this.score = score;
		}
		public TEverydayMatch(String matchTime, String isGroup,
				TEverydayGroup groupA, TEverydayGroup groupB, String statics,
				String groupRetail, String groupWinner, String score) {
			this.matchTime = matchTime;
			this.isGroup = isGroup;
			this.groupA = groupA;
			this.groupB = groupB;
			this.statics = statics;
			this.groupRetail = groupRetail;
			this.groupWinner = groupWinner;
			this.score = score;
		}
		
	}
	
	public static class TEverydayGroup{
		public String groupId;
		public Player playerA;
		public Player playerB;
		public String groupSeedNum;
		public String groupWildCard;
		
		public TEverydayGroup(String groupId,Player playerA, Player playerB,
				String groupSeedNum, String groupWildCard) {
			this.groupId = groupId;
			this.playerA = playerA;
			this.playerB = playerB;
			this.groupSeedNum = groupSeedNum;
			this.groupWildCard = groupWildCard;
		}
	}
}
